import request from '@/utils/request'

// 查询平台签约列表
export function listContractSign(query) {
  return request({
    url: '/sign/contractSign/list',
    method: 'get',
    params: query
  })
}

// 查询平台签约详细
export function getContractSign(id) {
  return request({
    url: '/sign/contractSign/' + id,
    method: 'get'
  })
}

// 新增平台签约
export function addContractSign(data) {
  return request({
    url: '/sign/contractSign',
    method: 'post',
    data: data
  })
}

// 修改平台签约
export function updateContractSign(data) {
  return request({
    url: '/sign/contractSign',
    method: 'put',
    data: data
  })
}

// 删除平台签约
export function delContractSign(id) {
  return request({
    url: '/sign/contractSign/' + id,
    method: 'delete'
  })
}

// 导出平台签约
export function exportContractSign(query) {
  return request({
    url: '/sign/contractSign/export',
    method: 'get',
    params: query
  })
}
